package com.huarui.saleInvoice.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.saleInvoice.dao.ISaleInvoiceDao;

public class SaleInvoiceDaoImpl extends BaseDaoImpl implements ISaleInvoiceDao{
	@SuppressWarnings("unchecked")
	public Integer getCountByConditions(Map map){
		return (Integer) this.getSqlMapClientTemplate().queryForObject(namespace+".getCountByConditions", map);
	}
	@SuppressWarnings("unchecked")
	public List<Map> getListByConditions(Map map){
		return  (List<Map>) this.getSqlMapClientTemplate().queryForList(namespace+".getListByConditions", map);
	}
	@Override
	public void deleteByCondition(Map<String, Object> map) {
		this.getSqlMapClientTemplate().delete(namespace+".deleteByCondition", map);
	}
}
